package com.iflytek.cosmo.ocr.common;

import java.util.List;

/**
 * 分页结果
 * @author <a href=mailto:ktyi@iflytek.com>伊开堂</a>
 * @date 2019-07-18 16:52
 */
public class PageResult<T> {

    private int page;

    private int size;

    private long total;

    private List<T> data;

    public PageResult() {
    }

    public PageResult(int page, int size) {
        this.page = page;
        this.size = size;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
